{extend name="common/base" /}
{block name="title"}文章列表 - WampServer中文站{/block}
{block name="head"}
<link rel="stylesheet" href="/public/static/css/github-markdown.css">
{/block}
{block name="body"}
<div class="container" style="margin-top: 65px;">
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="{:url('Index/index')}">首页</a></li>
            <li class="breadcrumb-item active" aria-current="page">文章</li>
        </ol>
    </nav>
    <ul class="list-group list-group-flush">
        {foreach $result as $res}
        <li class="list-group-item d-md-flex justify-content-between">
            <a href="{:url('Article/info', ['id' => $res->id])}">{$res->title}</a>
            <small class="d-block">{$res->create_time}</small>
        </li>
        {/foreach}
    </ul>

    <div class="mt-3">
        {$result->render()|raw}
    </div>

    <div class="mt-3 border rounded">
        <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-8372518057241672" data-ad-slot="1313079536"></ins>
    </div>
</div>
{/block}
{block name="script"}
{/block}